﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using EZMemoLib;

namespace Remember.WPF
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            string bookDbConnString = MemoLib.MemoBookConfig.GetEFConnectionString ();

            //bool isDBOK = Context.IsDBConnected();

            //if (!isDBOK)
            //{

            //    Context.DBDisconnect ();

            //    isDBOK = Context.IsDBConnected();
            //    if (!isDBOK)
            //    {
            //        MessageBox.Show("Database not found!");

            //        this.Shutdown();
            //    }
            //}
            //else
            //{
            //    base.OnStartup(e);
            //}
        }
    }
}
